const my_reg = /https?:\/{2}[^\/]*test/;
const url = "http://www.example.test.com/test/a/b/c";
console.log(my_reg.exec(url));